import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
//引入RouterProvider
import { RouterProvider } from 'react-router-dom'
import store from "./store/index"
import { Provider } from "react-redux"
//引入路由表
import router from "./router/index"
const root = ReactDOM.createRoot(document.getElementById('root'));
//useMatches、useLoaderData 等等的hook只能在这种模式下使⽤
root.render(
    <Provider store={store}>
        <RouterProvider router={router}>
        </RouterProvider>
    </Provider>
);


